<%@ page language="java" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<title>My JSP 'storageShow.jsp' starting page</title>
		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
		<script type="text/javascript" src="<%=request.getContextPath() %>/common/My97DatePicker/WdatePicker.js"></script>
		<style type="text/css">
		body,td,th {
			font-size: 12px;
		}
		
		.STYLE2 {
			color: #FF0000
		}
		</style>
		<script type="text/javascript">
			function selectSpecificationsid()
			{
				var selectURL = "<%=request.getContextPath()%>/specification/selectSpecification.action";
				var result = window.showModalDialog(selectURL);
				if(result != undefined)
				{
					var source = result.split("~");
					document.getElementById("specificationsid").value = source[0];
					document.getElementById("specificationsids").value = "亮度：" + source[1] + "     色温：" + source[2];
				}
			}
		</script>
	</head>

	<body>
		<form name="form1" method="post" action="<%=request.getContextPath() %>/storage/updateForStorage.action">
			<table width="80%" border="1" align="center" cellpadding="1"
				cellspacing="1">
				<tr>
					<td colspan="3">
						&nbsp;
					</td>
				</tr>
				<tr>
					<td width="137">
						品名：
					</td>
					<td align="center">
						<input name="storageBean.commodity" type="text"
							id="storageBean.commodity" style="width: 99%"
							value="${storageBean.commodity}">
					</td>
					<td width="10" class="STYLE2">
						*
					</td>
				</tr>
				<tr>
					<td width="137">
						生产指令单：
					</td>
					<td align="center">
						<input name="storageBean.ordernumber" type="text"
							id="storageBean.ordernumber" style="width: 99%"
							value="${storageBean.ordernumber}">
					</td>
					<td width="10" class="STYLE2">
						*
					</td>
				</tr>
				<tr>
					<td width="137">
						规格(亮度，色温)：
					</td>
					<td align="center">
						<input type="hidden" name="storageBean.specificationsid" id="specificationsid" value="${bean.specificationsid }">
						<input name="specificationsids" type="text"
							id="specificationsids" style="width: 99%"
							value="亮度：${storageBean.brightness}     色温：${storageBean.colortemperature}"
							ondblclick="selectSpecificationsid()" readonly="readonly">
					</td>
					<td width="10" class="STYLE2">
						*
					</td>
				</tr>
				<tr>
					<td width="137">
						计量单位：
					</td>
					<td align="center">
						<select name="storageBean.measurementid"
							id="storageBean.measurementid" style="width: 99%">
							<option value="${measurementBean.measurementid}">${measurementBean.measurementname}</option>
							<c:forEach var="measurementList" items="${measurementList}">
								<option value="${measurementList.measurementid }">${measurementList.measurementname }</option>
							</c:forEach>
						</select>
					</td>
					<td width="10" class="STYLE2">
						*
					</td>
				</tr>
				<tr>
					<td width="137">
						入库数量：
					</td>
					<td align="center">
						<input type="text" name="storageBean.storagenumber" id="storagenumber" value="${storageBean.storagenumber }" style="width: 99%">
					</td>
					<td width="10" class="STYLE2">
						*
					</td>
				</tr>
				<tr>
					<td width="137">
						入库日期：
					</td>
					<td align="center">
						<input class="Wdate" name="storageBean.storagetime" id="storagenumber" type="text" value="${storageBean.storagetime }" onClick="WdatePicker()" style="width: 99%">
					</td>
					<td width="10" class="STYLE2">
						*
					</td>
				</tr>
				<tr>
					<td width="137">
						&nbsp;
					</td>
					<td>
						&nbsp;
					</td>
					<td width="10">
						&nbsp;
					</td>
				</tr>
				<tr>
					<td colspan="3" align="center">
						<input type="submit" name="Submit" value="提交">
						<input type="reset" name="Submit2" value="重置">
						<input type="button" name="Submit3" value="返回" onClick="javascript:window.history.back();">
					</td>
				</tr>
			</table>
		</form>
	</body>
</html>